Microsoft DirectX 8.1 (C++)

ICAOffer::NotifyTollStateChanged

This topic applies to Windows XP Home Edition and Windows XP Professional only.

The NotifyTollStateChanged method signals that the state of a toll has changed.

Syntax

HRESULT NotifyTollStateChanged(
  ICAToll*  pToll,
  CATollState  enStateFrom
);

Parameters

  pToll

[in]  Pointer to the ICAToll interface of the toll.

  enStateFrom

[in]  Member of the CATollState enumeration, specifying the previous state.

Return Values

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

This helper method signals an _ICATollsEvents::StateChanged event. If the state switches from unselected to selected, this method also unselects the toll that was previously selected.

A toll that is attached to an offer should call this method whenever its state changes.

See Also